<template>
	<div class="car-box">
		<div ref="car" class="car"></div>
		<el-button>换色</el-button>
		<div class="color-box">
			<div
				v-for="(v, i) in colors"
				:key="i"
				class="item"
				:style="{ background: v }"
				@click="click(v)"
			></div>
		</div>
	</div>
</template>

<script src="./index.js"></script>
<style lang="scss" src="./index.scss" scoped />
